Fanuc M Codes

M00 program stop
M01 optional stop
M02 end of program (no rewind)
M03 spindle CW
M04 spindle CCW
M05 spindle stop
M06 tool change
M07 mist coolant ON
M08 flood coolant ON
M09 spindle orientation ON
M19 spindle orientation ON
M21 tool magazine right
M22 tool magazine left
M23 tool magazine up
M24 tool magazine down
M25 tool clamp
M26 tool unclamp
M27 clutch neutral ON
M28 clutch neutral OFF
M30 end program (rewind stop)
M98 call sub-program
M99 end sub-program